﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Scap.Web.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "Modifique esta plantilla para poner en marcha su aplicación ASP.NET MVC.";

            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Página de descripción de la aplicación.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Página de contacto.";

            return View();
        }

        /////////////////////////////////////////////////////////////////////
        // Name: Error
        // Version: 1.1.0
        // Summary: Send to the view the error to display the error
        // Date: 10/04/2013
        // Author: Mario G Vernaza
        // Prerequisites: None
        // Change History:
        // Date of change (dd/mm/yyyy) [MGV] – Description of change
        // GET: /Home/Error
        /////////////////////////////////////////////////////////////////////
        public ActionResult Error(Exception error)
        {
            ViewData["ExceptionMessage"] = error.ToString();

            return View();
        }

    }
}
